package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2023-08-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_storage_shelf_gird")
public class StorageShelfGirdDo extends Model<StorageShelfGirdDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("shelf_id")
    private Long shelfId;

    @TableField("shelf")
    private Integer shelf;

    @TableField("line")
    private Integer line;

    /**
     * 单货架 single 双货架 double
     */
    @TableField("gird_type")
    private String girdType;

    @TableField("position")
    private String position;

    @TableField("top_aisle")
    private Integer topAisle;

    @TableField("bot_aisle")
    private Integer botAisle;

    @TableField("pick_shelf")
    private Integer pickShelf;

    @TableField("sort")
    private Integer sort;


    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
